﻿@using ZDSoft.LMS.Domain;
@model TransportOrder
@{
    ViewBag.Title = "接单";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: White;"
    align="center">
    <tr>
        <td class="mbg">
            <table cellspacing="0" cellpadding="0" width="100%" border="0" valign="top">
                <tr>
                    <td>
                        <table style="height: 23px;" cellspacing="0" cellpadding="0" width="120" background="@Url.Content("~/Content/Images/m_17.gif")"
                            border="0">
                            <tr>
                                <td>
                                    <span class="contentPageTitle">&nbsp;&gt;&gt; 送货单详细信息</span>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="titleContentDivider" height="6">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<p>
    @Html.ActionLink("返回列表", "Index")
    @Html.ActionLink("打印", "", "", new { onclick = "" })
</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Style/CreateTranportOrder.css")" rel="stylesheet" type="text/css" />
<div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        <div>
            <table class="transportOrderTable" width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                    <td width="70">
                        送货人员：
                    </td>
                    <td colspan="2">
                    @if (Model.DeliveryFormItems.Count > 0)
                    {
                        @Html.DisplayFor(model => model.DeliveryFormItems[0].Transporter.UserName)
                    }
                    else
                    {
                        @:<font color="red">等待进行调用处理</font> 
                    }
                    </td>
                    <td>
                        运输车辆：
                    </td>
                    <td>
                    @if (Model.DeliveryFormItems.Count > 0)
                    {
                       @Html.DisplayFor(model => model.DeliveryFormItems[0].Vehicle.VehicleNumber)
                    }
                    else
                    {
                        @:<font color="red">等待进行调用处理</font> 
                    }
                    
                    </td>
                    <td>送货时间：</td>
                    <td colspan="3">
                    @if (Model.DeliveryFormItems.Count > 0)
                    {
                        @Html.DisplayFor(model => model.DeliveryFormItems[0].DeliveryDate)
                    }
                    else
                    {
                        @:<font color="red">等待进行调用处理</font> 
                    }                        
                    </td>
                </tr>
                <tr>
                    <td width="70">
                        发站：
                    </td>
                    <td colspan="2">
                        @Html.DisplayFor(model => model.StartStation)
                    </td>
                    <td>
                        到站：
                    </td>
                    <td colspan="5">
                        @Html.DisplayFor(model => model.Destionation)
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        到站所属省（市）自治区
                    </td>
                    <td colspan="5">
                        @Html.DisplayFor(model => model.ProvinceOfDestionation.Name)
                    </td>
                    <td rowspan="6">
                        <span>运输方式</span>
                    </td>
                    <td rowspan="6" colspan="2">
                        @Html.DisplayFor(model => model.DeliveryType)
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>发货地点</span>
                    </td>
                    <td colspan="3">
                        @Html.DisplayFor(model => model.StartStationLocation)
                    </td>
                    <td>
                        <span>交货地点</span>
                    </td>
                    <td colspan="2">
                        @Html.DisplayFor(model => model.DeliveryLocation)
                    </td>
                </tr>
                <tr>
                    <td rowspan="2">
                        <span>托运人</span>
                    </td>
                    <td>
                        <span>名称</span>
                    </td>
                    <td colspan="3">
                        @Html.DisplayFor(model => model.Commisionedor.Name)
                    </td>
                    <td>
                        <span>电话</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Commisionedor.Telephone)
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>地址</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Commisionedor.Address)
                    </td>
                    <td>
                        <span>邮编</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Commisionedor.PostNumber)
                    </td>
                    <td>
                        <span>E-mail</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Commisionedor.Email)
                    </td>
                </tr>
                <tr>
                    <td rowspan="2">
                        <span>收货人</span>
                    </td>
                    <td>
                        <span>名称</span>
                    </td>
                    <td colspan="3">
                        @Html.DisplayFor(model => model.Receiver.Name)
                    </td>
                    <td>
                        <span>电话</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Receiver.Telephone)
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>地址</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Receiver.Address)
                    </td>
                    <td>
                        <span>邮编</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Receiver.PostNumber)
                    </td>
                    <td>
                        <span>E-mail</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Receiver.Email)
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        货物品名
                    </td>
                    <td>
                        集装箱箱型
                    </td>
                    <td>
                        集装箱箱类
                    </td>
                    <td>
                        集装箱数量
                    </td>
                    <td>
                        集装箱号码
                    </td>
                    <td>
                        施封号码
                    </td>
                    <td colspan="2">
                        运输费用
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        @Html.DisplayFor(model => model.TranportOrderItems[0].CargoName, new { @class="cargoTextWidth" })
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.TranportOrderItems[0].CabinetSort, new { @class = "cargoTextWidth" })
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.TranportOrderItems[0].CabinetType, new { @class = "cargoTextWidth" })
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.TranportOrderItems[0].Counter, new { @class = "cargoTextWidth" })
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.TranportOrderItems[0].CabinetNumber, new { @class = "cargoTextWidth" })
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.TranportOrderItems[0].SealedNumber, new { @class = "cargoTextWidth" })
                    </td>
                    <td colspan="2">
                        @Html.DisplayFor(model => model.TranportOrderItems[0].TransportFee, new { @class = "cargoTextWidth" })
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>托运人记载事项</span>
                    </td>
                    <td colspan="2">
                        @Html.DisplayFor(model => model.CommissionedorRemark)
                    </td>
                    <td>
                        <span>添附文件</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.AttachedFile)
                    </td>
                    <td>
                        <span>货物价格</span>
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.Price)
                    </td>
                    <td>
                        承运人记载事项
                    </td>
                    <td colspan="3">
                        @Html.DisplayFor(model => model.TransportorRemark)
                    </td>
                </tr>
            </table>
        </div>
    }
</div>
